import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    isbusNewsDitle: false,
    loading: true,
    ifshow: true,
    // baseUrl: "http://39.100.147.206:8056/bus/appuser/img?url=",
    baseUrl: "",
    // baseUrl: "http://192.168.1.102:8028/bus/appuser/img?url=",
    baseUrl2: "http://39.100.147.206:8056",
    // baseUrl2: "http://192.168.1.102:8028",
  },
  mutations: {
    handLoad (state, type) {
      state.loading = type
    },
    handifshow (state, type) {
      state.ifshow = type

    },
    handBus (state, isbus) {
      state.isbusNewsDitle = isbus
      console.log('判断弹框是否出现', isbus)
    },
  },
  actions: {
  },
  modules: {
  }
})
